<?php
/**
 * Created by JetBrains PhpStorm.
 * User: SilverHand
 * Date: 6/11/13
 * Time: 11:22 PM
 * To change this template use File | Settings | File Templates.
 */

$this->widget('bootstrap.widgets.BootNavbar', array(
	'fixed'=>'top',
	'brand'=>'SRO Online',
	'brandUrl'=>HOME_URL,
	'htmlOptions'=>array(),
	'items'=>array(
		array(
			'class'=>'bootstrap.widgets.BootMenu',
			'items'=>array(
				array('label'=>Yii::t('label', 'Tài khoản'), 'url'=>array('#'), 'items'=>array(
					array('label'=>Yii::t('label', 'Đăng ký'), 'url'=>array('/account/register')),
					array('label'=>Yii::t('label', 'Đăng nhập'), 'url'=>array('/account/login')),
				)),
//				array('label'=>Yii::t('label', 'Giao dịch'), 'url'=>array('#'), 'items'=>array(
//					array('label'=>Yii::t('label', 'Từ Merchant'), 'url'=>array('/hq/chargeLog/manager')),
//					array('label'=>Yii::t('label', 'Giao dịch rút'), 'url'=>array('/hq/withdrawLog/manager')),
//				)),
//				array('label'=>Yii::t('label', 'Giao dịch thẻ'), 'url'=>array('/hq/cardTransaction')),
//				array('label'=>Yii::t('label', 'Thanh toán'), 'url'=>array('#'), 'items'=>array(
//					array('label'=>Yii::t('label', 'Danh sách'), 'url'=>array('/hq/cardPayment')),
//				)),
//				array('label'=>Yii::t('label', 'Kiểm tra'), 'url'=>array('#'), 'items'=>array(
//					array('label'=>Yii::t('label', 'Fgame'), 'url'=>array('/hq/cardTransaction/checkFgame')),
//				)),
			),
		),
		array(
			'class'=>'bootstrap.widgets.BootMenu',
			'htmlOptions'=>array('class'=>'pull-right'),
			'items'=>array(
				array('label'=>'Chào bạn ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Đăng xuất', 'url'=>array('/account/signOut', 'returnUrl'=>Yii::app()->request->requestUri), 'visible'=>!Yii::app()->user->isGuest),
				array('label'=>'Đăng nhập', 'url'=>array(Yii::app()->user->loginUrl, 'returnUrl'=>Yii::app()->request->requestUri), 'visible'=>Yii::app()->user->isGuest),
			),
		),
	),
));